class App {
    public static Init(width: number, height: number): void {
        Laya3D.init(width, height)
        //Laya.init(width, height, Laya.WebGL);
        Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE;
        Laya.stage.alignH = Laya.Stage.ALIGN_CENTER;

        Laya.stage.scaleMode = "showall";
        Laya.stage.bgColor = "#232628";
        Laya.Stat.show(0, 0);
    }


    public static get ResourceUtils(): Core.ResourceUtils {
        return Core.ResourceUtils.getInstance();
    }
    public static get ControllerManager(): Core.ControllerManager {
        return Core.ControllerManager.getInstance();
    }
    public static get ViewManager(): Core.ViewManager {
        return Core.ViewManager.getInstance();
    }
    public static get EasyLoading(): Core.EasyLoading {
        return Core.EasyLoading.getInstance();
    }
    public static get StageUtils(): Core.StageUtils {
        return Core.StageUtils.getInstance();
    }
    public static get TimerManager(): Core.TimerManager {
        return Core.TimerManager.getInstance();
    }
    public static get DisplayUtils(): Core.DisplayUtils {
        return Core.DisplayUtils.getInstance();
    }
    public static get SceneManager(): Core.SceneManager {
        return Core.SceneManager.getInstance();
    }
}